/**
 * Created by xinghuo on 2017/6/10.
 */
var data = JSON.parse('{"type":"in","offset":"0","_sid":"2s5CgXaWL6wZXsbid8o4+HAHMCb5Fvv/+GbJGUMHdf4="}')
const util = require('./util')
data =  util.ksort(data);
sign = util.sign(data, '861641e34b553fc872ea5393823a211c')
console.log(data)
console.log(sign)

//861641e34b553fc872ea5393823a211c_sid=2s5CgXaWL6wZXsbid8o4+HAHMCb5Fvv/+GbJGUMHdf4=&offset=0&type=in861641e34b553fc872ea5393823a211c
//php
//861641e34b553fc872ea5393823a211c_sid=2s5CgXaWL6wZXsbid8o4+HAHMCb5Fvv/+GbJGUMHdf4=&offset=0&type=in861641e34b553fc872ea5393823a211c